{% extends "layout.html.twig" %}
{% form_theme form 'AcmeEventBundle:Form:fields.html.twig' %}
{% block content %}

			<h2>Event erfassen</h2>
			{% for flashMessage in app.session.flashbag.get('message') %}
			<div class="row">
				<div class="col-md-12" style="color:green;">
			    	{{ flashMessage }}
			    </div>
			</div>
			{% endfor %}
			
{% for flashMessage in app.session.flashbag.get('error') %}

    {{ flashMessage }}

{% endfor %}
			
			

			{% if information != NULL %}
			
			<div class="row">
				<div class="col-md-12" style="font-size:16px;"><strong>Event für den {{ information.datum|date('d-m-Y') }}</strong></div>
			</div>
			
			
										
			<div class="row">
				<div class="col-md-12">&nbsp;</div>
			</div>							
			{{ form_start(form) }}
			    {{ form_errors(form) }}

				<div class="row">
					<div class="col-md-12"><strong>Angaben für Apero</strong></div>
				</div>							
				<hr/>
			
				<div class="row">
					<div class="col-md-6">
					    <div class="form-group">
					        
					        {{ form_errors(form.aperolocation) }}
					        {{ form_widget(form.aperolocation, {value: information.aperolocation_id ~ "" }) }}
					    </div>
				    </div>
				    <div class="col-md-6">&nbsp;</div>
				</div>			
			
				<div class="row">
					<div class="col-md-12">&nbsp;</div>
				</div>							
				
				<div class="row">
					<div class="col-md-12"><strong>Angaben für Nachtessen</strong></div>
				</div>							
				<hr/>
			
				<div class="row">
					<div class="col-md-12">
					    <div class="form-group">
					        {{ form_label(form.location) }}
					        {{ form_errors(form.location) }}
					        {{ form_widget(form.location) }}
						</div>
					</div>
				</div>

				<div class="row">
					<div class="col-md-12">
					    <div class="form-group">
					        {{ form_label(form.street) }}
					        {{ form_errors(form.street) }}
					        {{ form_widget(form.street) }}
						</div>
					</div>
				</div>

				<div class="row">
					<div class="col-md-6">
					    <div class="form-group">
					        {{ form_label(form.postcode) }}
					        {{ form_errors(form.postcode) }}
					        {{ form_widget(form.postcode) }}
						</div>
					</div>
					<div class="col-md-6">
					    <div class="form-group">
					        {{ form_label(form.city) }}
					        {{ form_errors(form.city) }}
					        {{ form_widget(form.city) }}
						</div>
					</div>
				</div>
<!--				
				<div class="row">
					<div class="col-md-6">
					    <div class="form-group">
					        {{ form_label(form.email) }}
					        {{ form_errors(form.email) }}
					        {{ form_widget(form.email) }}
						</div>
					</div>
					<div class="col-md-6">
					    <div class="form-group">
					        {{ form_label(form.telefon) }}
					        {{ form_errors(form.telefon) }}
					        {{ form_widget(form.telefon) }}
						</div>
					</div>
				</div>
-->
				<div class="row">
					<div class="col-md-12">
					    <div class="form-group">
					        {{ form_label(form.description) }}
					        {{ form_errors(form.description) }}
					        {{ form_widget(form.description) }}
						</div>
					</div>
				</div>		

			    <div class="row">
			    	<div class="col-md-12">
			    		<div class="form-group">
			        		{{ form_widget(form.save, { attr: {'class':'btn btn-default'}} ) }}
			        	</div>
			        </div>
			    </div>
			
			{{ form_end(form) }}
			
			{% endif %}
			
			
{% endblock %}			